package net.simflow.swf.analyzer.bgnetwork.data;

public class BGLink {
	private BGNode sender;
	private BGNode receiver;

	public BGLink(BGNode sender, BGNode receiver) {
		this.sender = sender;
		this.receiver = receiver;
	}

	public BGNode getSender() {
		return sender;
	}

	public BGNode getReceiver() {
		return receiver;
	}

	public String getShortInfo() {
		StringBuffer str = new StringBuffer();

		str.append(this.getSender().getNameInBG());
		str.append("==>");
		str.append(this.getReceiver().getNameInBG());

		return str.toString();
	}

	@Override
	public String toString() {
		return getShortInfo();
	}
}
